package edu.uoc.tdp.pac4.client.stats;

import java.awt.Dimension;
import java.awt.GridLayout;
import java.awt.event.KeyEvent;

import javax.swing.JComponent;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTabbedPane;

import edu.uoc.tdp.pac4.client.ClientConnectionHelper;
import edu.uoc.tdp.pac4.common.util.LanguageUtils;

public class StatsGeneralTeacher extends JPanel {
	
	private ClientConnectionHelper connection;

	public StatsGeneralTeacher(ClientConnectionHelper connectionHelper) {
		super(new GridLayout(1, 1));
		connection = connectionHelper;

		JTabbedPane tabbedPane = new JTabbedPane();

		tabbedPane.addTab(LanguageUtils.getMessage("client.stat.professor1"), null, new StatsTeacherStudentsXClasses(connection), "");

		tabbedPane.addTab(LanguageUtils.getMessage("client.stat.professor2"), null, new StatsTeacherAttendanceXClasses(connection), "");

		// Add the tabbed pane to this panel.
		add(tabbedPane);

		// The following line enables to use scrolling tabs.
		tabbedPane.setTabLayoutPolicy(JTabbedPane.SCROLL_TAB_LAYOUT);
	}

	/*protected JComponent makeTextPanel(String text) {
		JPanel panel = new JPanel(false);
		JLabel filler = new JLabel(text);
		filler.setHorizontalAlignment(JLabel.CENTER);
		panel.setLayout(new GridLayout(1, 1));
		panel.add(filler);
		return panel;

	}*/
}
